﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataStructDemo.LikedListDemo;
namespace DataStructDemo
{
    class Program
    {
        static void Main(string[] args)
        {
//           var list=new InsertHeadWay<int>();
//            for (int i = 0; i < 10; i++)
//            {
//                list.AddHead(i);
//            }

           var list = new EndInsertWay<int>();
            for (int i = 0; i < 2; i++)
            {
                list.AddEnd(i);
            }
            foreach (int i in list.GetEnumerable())
            {
                System.Console.Write(i+" ");
            }
            System.Console.WriteLine("\nDone");
        }
    }
}
